/**
 * Create a namespace
 * 
 * @param	name	namespace string like 'org.example'
 * @param	separator	default "."
 * @param	container	default window object
 */

var namespace = function(name, separator, container){
	var ns = name.split(separator || '.'),
		o = container || window,
		i,
		len;
	for(i = 0, len = ns.length; i < len; i++){
		o = o[ns[i]] = o[ns[i]] || {};
	}
	return o;
};